import type { ListProps as AntdListProps } from 'antd';
import { List as AntdList } from 'antd';
import React from 'react';
import Item from './Item';

export type { Props as ItemProps } from './Item';
export { Item };

export type ListProps<T> = AntdListProps<T>;

function List<T>(props: ListProps<T>) {
  return <AntdList {...props} />;
}

List.Item = Item;
export default List;
